﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using testlan2.DAL;

namespace testlan2.BLL
{
    class xulyBLL
    {
        xulyDAL DAL = new xulyDAL();
        public List<HOCPHAN> getTable()
        {
            return DAL.getTable();
        }
        public HOCPHAN getMA(string mahp)
        {
            return DAL.getMAHOC(mahp);
        }
        public void add(HOCPHAN p)
        {
             DAL.addHP(p);
        }
        public void xoahp(HOCPHAN p)
        {
            DAL.xoa(p);
        }
        public void updatehp()
        {
            DAL.update();
        }
    }
}
